
#include "SepList.h"


void TestSepList1()
{
	SL s1;
	SepListInit(&s1);

	SepListPushFront(&s1, 2);
	SepListPushFront(&s1, 1);

	SepListPopFront(&s1);
	

	printfSepList(&s1);

	SepLIstDistroy(&s1);
}

void TestSepList2()	// insert test
{
	SL s1;
	SepListInit(&s1);
	SepListInsert(&s1, 0, 21);
	SepListInsert(&s1, 0, 2);
	SepListInsert(&s1, 0, 5);
	SepListInsert(&s1, 0, 7);
	SepListInsert(&s1, 0, 3);

	int pos = SepListFind(&s1, 21);
	if (pos != -1)
	{
		SepListInsert(&s1, pos, 56);
	}

	printfSepList(&s1);

	SepLIstDistroy(&s1);
}


int main()
{
	// TestSepList1();
	TestSepList2();
	return 0;
}